package demo06.singletonLazy;

public class Singleton {
	private static Singleton uniqueInstance;
	 
	private Singleton() {}
 
	public static Singleton getInstance() {//懒汉式
		if (uniqueInstance == null) {
			uniqueInstance = new Singleton();
		}
		return uniqueInstance;
	}
 

	public String getDescription() {
		return "我是懒汉式单例模式";
	}

}
